package com.panda.pandawash.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;

import com.panda.pandawash.R;
import com.panda.pandawash.base.BaseActivity;
import com.panda.pandawash.fragment.MonitorInfoFragment;

/**
 * Created by gaowf on 2017/3/7.
 */

public class ProductInfoActivity extends BaseActivity {
    private MonitorInfoFragment mMonitorInfoFragment;
    private Intent intent;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_product_info);
        Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
        initToolBar(toolbar,true,R.string.product_info);
        intent = getIntent();
        if(mMonitorInfoFragment == null) {
            mMonitorInfoFragment = new MonitorInfoFragment();
        }
        addFragment(R.id.fl_container, mMonitorInfoFragment);
        mMonitorInfoFragment.onActivityResult(0,MonitorInfoFragment.UPDATE_DEV_INFO,intent);
    }
}
